const formatImg = (data) => {
  return data.replaceAll('style=""', 'style="width: 100%"')
}

const formatVideo = (data) => {
  return data.replaceAll('<video controls="true">', '<video controls="true" style="width: 100%">')
}

export const formatHtml = (data) => {
  data = formatImg(data)
  return formatVideo(data)
}
